/**
 * <p>Copyright (c) 2017 深圳市鹏途交通科技有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	深圳市国省检日常化监管系统         </p>
 * <p>创建者   :	heyong 
 * 
 * <p>描   述  :   FundGuarantee.java for com.pengtu.gsj.entity.zhgl    </p>
 * 
 * <p>最后修改 : $: 2017年8月16日-上午10:03:41 v 1.0.0	 heyong   $ </p>
 * 
*/

package com.pengtu.gsj.entity.zhgl;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

/**
 * 
 * FundGuarantee
 * 年度资金保障
 * 2017年8月16日 上午10:03:41
 * 
 * @version 1.0.0
 * 
 */
@Entity
@Table(name = "T_ZH_FUNDGUARANTEE")
public class FundGuarantee  extends IdEntity{

	private static final long serialVersionUID = -68042502389596984L;
	
	private String testYear;					//年份
	private Double changeBuild;					//改建部分资金
	private Double largeRepair;					//大中修资金
	private Double smallRepair;					//小修及管养资金
	private Double ortherMony;					//其他
	private Double maintenanceMoney;			//养护资金支出合计
	private Double returnMoney;					//财政转移支付资金替代返还基数部分资金
	private Double increaseMoney;				//财政转移支付资金增量部分资金
	private Double fiscalMoney;					//财政转移支付资金
	private String isEmbezzle;					//是否挪用财政转移支付资金
	private String remark;
	
	private Integer bulletinNumber;     //检测文件数
	private List<Attachment> attachments;
	
	
	@Column(name = "TESTYEAR")
	public String getTestYear() {
		return testYear;
	}
	public void setTestYear(String testYear) {
		this.testYear = testYear;
	}
	@Column(name = "CHANGEBUILD")
	public Double getChangeBuild() {
		return changeBuild;
	}
	public void setChangeBuild(Double changeBuild) {
		this.changeBuild = changeBuild;
	}
	@Column(name = "LARGEREPAIR")
	public Double getLargeRepair() {
		return largeRepair;
	}
	public void setLargeRepair(Double largeRepair) {
		this.largeRepair = largeRepair;
	}
	@Column(name = "SMALLREPAIR")
	public Double getSmallRepair() {
		return smallRepair;
	}
	public void setSmallRepair(Double smallRepair) {
		this.smallRepair = smallRepair;
	}
	@Column(name = "ORTHERMONY")
	public Double getOrtherMony() {
		return ortherMony;
	}
	public void setOrtherMony(Double ortherMony) {
		this.ortherMony = ortherMony;
	}
	@Column(name = "MAINTENANCEMONEY")
	public Double getMaintenanceMoney() {
		return maintenanceMoney;
	}
	public void setMaintenanceMoney(Double maintenanceMoney) {
		this.maintenanceMoney = maintenanceMoney;
	}
	@Column(name = "RETURNMONEY")
	public Double getReturnMoney() {
		return returnMoney;
	}
	public void setReturnMoney(Double returnMoney) {
		this.returnMoney = returnMoney;
	}
	@Column(name = "INCREASEMONEY")
	public Double getIncreaseMoney() {
		return increaseMoney;
	}
	public void setIncreaseMoney(Double increaseMoney) {
		this.increaseMoney = increaseMoney;
	}
	@Column(name = "FISCALMONEY")
	public Double getFiscalMoney() {
		return fiscalMoney;
	}
	public void setFiscalMoney(Double fiscalMoney) {
		this.fiscalMoney = fiscalMoney;
	}
	@Column(name = "ISEMBEZZLE")
	public String getIsEmbezzle() {
		return isEmbezzle;
	}
	public void setIsEmbezzle(String isEmbezzle) {
		this.isEmbezzle = isEmbezzle;
	}
	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	
	@Transient
	public Integer getBulletinNumber() {
		bulletinNumber = attachments.size();
		return bulletinNumber;
	}

	public void setBulletinNumber(Integer bulletinNumber) {
		this.bulletinNumber = bulletinNumber;
	}

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}
	
}
